/**
 * Created by vincent on 2017/10/19.
 */
moduleUtils.filter('cmLang', function ($translate) {
    return function (text, key) {
        if (key) {
            return $translate.instant(key);
        } else {
            return text;
        }
    };
});